<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title><?php echo $title_for_layout; ?></title>
	<?php
	echo $this->Html->meta('icon');
	echo $this->fetch('meta');
	echo $this->fetch('css');
	echo $this->fetch('script');
	?>
	<?php
		echo $this->Html->script('jquery-1.8.3.min.js');
		echo $this->Html->script('jquery-ui-1.10.0.custom.min.js');
		echo $this->Html->script('tthc.js');		
	?>
	<?php
		echo $this->Html->css('common.css');
		echo $this->Html->css('css3.css');
		echo $this->Html->css('jquery-ui-1.10.0.custom.min.css');
		echo $this->Html->css('be.css');
	?>
</head>
<body>
	<input type="hidden" id="action" value="<?php echo $this->request->params['action']?>"/>
	<input type="hidden" id="menu" value="<?php echo $selectedMenu; ?>"/>
	<div id="wrapper">
		<div id="container">
			<div id="header">
				<div class="title fl">&nbsp;</div>
				<div class="fr" style="margin: 20px 20px 0px 0px; width: 118px;">
					<a href="<?php echo $this->request->webroot?>users/logout">
						<div class="logout fr"></div>
					</a>
					<div style="float: left; margin-top: 5px;">Hôm nay: <?php echo date('d/m/Y');?></div>
				</div>
			</div>
			<div id="menu">
				<ul>
					<li><?php if($menu['home']) echo $this->Html->link('Home', array('controller' => 'home','action' =>'index'),array("id"=>"mhome","class"=>"system"));?></li>
					<li><?php echo $this->Html->link('Hệ thống', array('controller' => 'systems', 'action' => 'index'),array("id"=>"msystems","class"=>"system"));?></li>
					<li><?php echo $this->Html->link('Duyệt hồ sơ', array('controller' => 'duyethosos'),array("id"=>"mduyetHosos","class"=>"system"));?></li>
					<li><?php echo $this->Html->link('Tiếp nhận', array('controller' => 'tiepnhan'),array("id"=>"mtiepnhan","class"=>"system"));?></li>
					<li><?php echo $this->Html->link('Phân xử lý', array('controller' => 'phanxuly'),array("id"=>"mphanxuly","class"=>"system"));?></li>
					<li><?php if($menu['xuly']) echo $this->Html->link('Xử lý', array('controller' => 'xuly'),array("id"=>"mxuly","class"=>"system"));?></li>
					<li><?php if($menu['kiemduyet']) echo $this->Html->link('Duyệt', array('controller' => 'kiemduyet'),array("id"=>"mkiemduyet","class"=>"system"));?></li>
					<li><?php if($menu['kyduyet']) echo $this->Html->link('Ký', array('controller' => 'kyduyet'),array("id"=>"mkyduyet","class"=>"system"));?></li>
					<li><?php if($menu['traketqua']) echo $this->Html->link('Trả kết quả', array('controller' => 'traketqua'),array("id"=>"mtraketqua","class"=>"system"));?></li>
					<li><?php if($menu['baocao']) echo $this->Html->link('Báo cáo', array('controller' => 'report','action' =>'index'),array("id"=>"mreport","class"=>"system"));?></li>
					<li><?php if($menu['tracuu']) echo $this->Html->link('Tra cứu', array('controller' => 'tracuu','action' =>'index'),array("id"=>"mreport","class"=>"system"));?></li>
				</ul>
			</div>
			<div id="main" style="margin: 0px;padding: 0px;">
				<div id="left-panel" class="fl">
					<?php echo $this->Html->link('Báo cáo tình hình', array('controller'=> 'report','action' => 'baocaoTk'),array("id"=>"baocaoTh","class"=>"menu"));?>
					<?php echo $this->Html->link('Báo cáo thống kê', array('controller'=> 'report','action' => 'baocaoTk'),array("id"=>"baocaoTk","class"=>"menu"));?>
					<?php echo $this->Html->link('Báo cáo phân loại', array('controller'=> 'report','action' => 'baocaoPl'),array("id"=>"baocaoPl","class"=>"menu"));?>
					<?php echo $this->Html->link('Báo cáo tổng hợp', array('controller'=> 'report','action' => 'baocaoThp'),array("id"=>"baocaoThp","class"=>"menu"));?>
				</div>
				<div id="right-panel" class="fl">
					<?php echo $this->Session->flash();?>
					<?php echo $this->fetch('content');?>
				</div>
				<div class="clear"></div>
			</div>
			<div id="footer">
				<p>
					Sở Xây Dựng - UBND Tỉnh Tuyên Quang
				</p>
				<p>
					Địa chỉ: 130 Trần Hưng Đạo, Thành phố Tuyên Quang, Tỉnh Tuyên Quang
				</p>
				<p>
					Điện thoại liên hệ: 
				</p>
				<p><span>Email: <a href="mailto:infor@tuyenquang.vn">infor@tuyenquang.vn</a></span><span></span></p>
			</div>
		</div>
	</div>
</body>
</html>
